package org.lx.nursing.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.lx.nursing.domain.Floor;
import org.lx.nursing.vo.FloorVo;
import org.lx.nursing.vo.RoomBedAndFloorVo;

import java.util.List;

@Mapper
public interface FloorMapper extends BaseMapper<Floor> {
    Floor selectFloorById(Long id);

    List<Floor> selectFloorList(Floor floor);

    int insertFloor(Floor floor);

    int updateFloor(Floor floor);

    int deleteFloorById(Long id);

    int deleteFloorByIds(Long[] ids);

    List<Floor> selectAllByNur();

    List<RoomBedAndFloorVo> getRoomAndBedByBedStatus(Integer status);

    List<FloorVo> getAllFloorsWithDevice();
}
